import request from '@/utils/request'

// 查看停车缴费列表
export const getRulesListAPI = params => {
  return request.get('/parking/rule/list', { params })
}

// 添加计费规则
export const addRulesAPI = data => {
  return request.post('/parking/rule', data)
}

// 删除规则
export const delRulesAPI = id => {
  return request.delete(`/parking/rule/${id}`)
}

// 查看规则详情 /parking/rule/{id}
export const getParkingRulesDetailAPI = id => {
  return request.get(`/parking/rule/${id}`)
}

// 编辑计费规则
export const editRulesAPI = data => {
  return request.put('/parking/rule', data)
}
